﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001071 RID: 4209
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournSeasonInfo : IMessage<RogueTournSeasonInfo>, IMessage, IEquatable<RogueTournSeasonInfo>, IDeepCloneable<RogueTournSeasonInfo>, IBufferMessage
	{
		// Token: 0x17003518 RID: 13592
		// (get) Token: 0x0600BBF8 RID: 48120 RVA: 0x001FA8B9 File Offset: 0x001F8AB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournSeasonInfo> Parser
		{
			get
			{
				return RogueTournSeasonInfo._parser;
			}
		}

		// Token: 0x17003519 RID: 13593
		// (get) Token: 0x0600BBF9 RID: 48121 RVA: 0x001FA8C0 File Offset: 0x001F8AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournSeasonInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700351A RID: 13594
		// (get) Token: 0x0600BBFA RID: 48122 RVA: 0x001FA8D2 File Offset: 0x001F8AD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournSeasonInfo.Descriptor;
			}
		}

		// Token: 0x0600BBFB RID: 48123 RVA: 0x001FA8D9 File Offset: 0x001F8AD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournSeasonInfo()
		{
		}

		// Token: 0x0600BBFC RID: 48124 RVA: 0x001FA8E1 File Offset: 0x001F8AE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournSeasonInfo(RogueTournSeasonInfo other) : this()
		{
			this.mainTournId_ = other.mainTournId_;
			this.subTournId_ = other.subTournId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BBFD RID: 48125 RVA: 0x001FA912 File Offset: 0x001F8B12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournSeasonInfo Clone()
		{
			return new RogueTournSeasonInfo(this);
		}

		// Token: 0x1700351B RID: 13595
		// (get) Token: 0x0600BBFE RID: 48126 RVA: 0x001FA91A File Offset: 0x001F8B1A
		// (set) Token: 0x0600BBFF RID: 48127 RVA: 0x001FA922 File Offset: 0x001F8B22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainTournId
		{
			get
			{
				return this.mainTournId_;
			}
			set
			{
				this.mainTournId_ = value;
			}
		}

		// Token: 0x1700351C RID: 13596
		// (get) Token: 0x0600BC00 RID: 48128 RVA: 0x001FA92B File Offset: 0x001F8B2B
		// (set) Token: 0x0600BC01 RID: 48129 RVA: 0x001FA933 File Offset: 0x001F8B33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubTournId
		{
			get
			{
				return this.subTournId_;
			}
			set
			{
				this.subTournId_ = value;
			}
		}

		// Token: 0x0600BC02 RID: 48130 RVA: 0x001FA93C File Offset: 0x001F8B3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournSeasonInfo);
		}

		// Token: 0x0600BC03 RID: 48131 RVA: 0x001FA94A File Offset: 0x001F8B4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournSeasonInfo other)
		{
			return other != null && (other == this || (this.MainTournId == other.MainTournId && this.SubTournId == other.SubTournId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BC04 RID: 48132 RVA: 0x001FA988 File Offset: 0x001F8B88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MainTournId != 0U)
			{
				num ^= this.MainTournId.GetHashCode();
			}
			if (this.SubTournId != 0U)
			{
				num ^= this.SubTournId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BC05 RID: 48133 RVA: 0x001FA9E0 File Offset: 0x001F8BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BC06 RID: 48134 RVA: 0x001FA9E8 File Offset: 0x001F8BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BC07 RID: 48135 RVA: 0x001FA9F4 File Offset: 0x001F8BF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MainTournId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.MainTournId);
			}
			if (this.SubTournId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.SubTournId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BC08 RID: 48136 RVA: 0x001FAA50 File Offset: 0x001F8C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MainTournId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainTournId);
			}
			if (this.SubTournId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubTournId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BC09 RID: 48137 RVA: 0x001FAAA8 File Offset: 0x001F8CA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournSeasonInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MainTournId != 0U)
			{
				this.MainTournId = other.MainTournId;
			}
			if (other.SubTournId != 0U)
			{
				this.SubTournId = other.SubTournId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BC0A RID: 48138 RVA: 0x001FAAF8 File Offset: 0x001F8CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BC0B RID: 48139 RVA: 0x001FAB04 File Offset: 0x001F8D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SubTournId = input.ReadUInt32();
					}
				}
				else
				{
					this.MainTournId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004BAE RID: 19374
		private static readonly MessageParser<RogueTournSeasonInfo> _parser = new MessageParser<RogueTournSeasonInfo>(() => new RogueTournSeasonInfo());

		// Token: 0x04004BAF RID: 19375
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004BB0 RID: 19376
		public const int MainTournIdFieldNumber = 3;

		// Token: 0x04004BB1 RID: 19377
		private uint mainTournId_;

		// Token: 0x04004BB2 RID: 19378
		public const int SubTournIdFieldNumber = 14;

		// Token: 0x04004BB3 RID: 19379
		private uint subTournId_;
	}
}
